package com.hl.sfzy.mapper.content.fm;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hl.sfzy.entity.content.FM;

import java.time.LocalDateTime;
import java.util.List;


@Mapper
@Repository
public interface FMMapper {


    public List<FM> findByAll();

    public int saveFM(FM fm);

    public int deleteFM(Long fmId);

    public Long findCount();

    public List<FM> search(@Param("keyword") String keyword, @Param("startTime") LocalDateTime start, @Param("endTime") LocalDateTime limit);

    public FM findById(Long id);

    public int updateFM(FM fm);

}
